package ywh.ui.courseslider
{
	import fl.controls.Slider;
	import flash.display.DisplayObject;
	
	import flash.events.MouseEvent;
	
	/**
	 * ...
	 * @author WilliWHYang
	 */
	public class CourseSlider2 extends Slider
	{
		protected static var defaultStyles:Object = {thumbUpSkin: "CourseSliderThumb_Skin", thumbOverSkin: "CourseSliderThumb_Skin", thumbDownSkin: "CourseSliderThumb_Skin", thumbDisabledSkin: "CourseSliderThumb_Skin", sliderTrackSkin: "CourseSliderTrack_skin", sliderTrackDisabledSkin: "CourseSliderTrack_skin", tickSkin: "SliderTick_skin", focusRectSkin: null, focusRectPadding: null}
		
		public static function getStyleDefinition():Object
		{
			return defaultStyles;
		}
		
		public function CourseSlider2()
		{
			super();
			this._snapInterval = 0.01;
			this.maximum = 100;
			this.minimum = 0;
		}
		
		override protected function configUI():void
		{
			super.configUI();
			var newThumb:DisplayObject =  getDisplayObjectInstance(getStyleValue("thumbUpSkin"));
			thumb.setSize(newThumb.width, newThumb.height);
			var newTrack:DisplayObject =  getDisplayObjectInstance(getStyleValue("sliderTrackSkin"));
			track.setSize(track.width, newTrack.height);
		}
	
	}

}